#include "SMPPBroadcastChannelIndicator.hpp"

using namespace smpp::pdu;

BroadcastChannelIndicator::BroadcastChannelIndicator(const quint8 nValue):
TLV(TLVtags::TAG_BROADCAST_CHANNEL_INDICATOR,1),_Value(nValue){}

BroadcastChannelIndicator::BroadcastChannelIndicator(
const BroadcastChannelIndicator &nBroadcastChannelIndicator):
TLV(nBroadcastChannelIndicator),
_Value(nBroadcastChannelIndicator.getValue()){}

bool BroadcastChannelIndicator::operator ==(
	const BroadcastChannelIndicator &nBroadcastChannelIndicator) const{
		return (TLV::operator == (nBroadcastChannelIndicator) && 
			_Value == nBroadcastChannelIndicator.getValue());
}

bool BroadcastChannelIndicator::operator !=(
	const BroadcastChannelIndicator &nBroadcastChannelIndicator) const{
	return !this->operator == (nBroadcastChannelIndicator);
}

BroadcastChannelIndicator &BroadcastChannelIndicator::operator = (
	const BroadcastChannelIndicator &nBroadcastChannelIndicator){
	if(*this == nBroadcastChannelIndicator)
		return *this;
	TLV::operator = (nBroadcastChannelIndicator);
	_Value = nBroadcastChannelIndicator.getValue();
	return *this;
}

void BroadcastChannelIndicator::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 BroadcastChannelIndicator::getValue() const{
	return _Value;
}
